package Models;

import java.io.Serializable;

import encrypter.Encrypter;

public class Employee implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private int id;
	private int acetaldehyde;
	private boolean BARApproval;
	private boolean BBrewingAccess;
	private boolean BBrewingNot;
	private boolean BCellaringAccess;
	private boolean BCellaringNot;
	private boolean BLabAccess;
	private boolean BPackagingAccess;
	private boolean BPackagingNot;
	private boolean BPurchasingNot;
	private boolean BSalesAccess;
	private boolean BSalesNot;
	private boolean BTaproomAccess;
	private boolean BRecipeModAccess;
	private int diacetyl;
	private int dms;
	private boolean empAxed;
	private String email;
	private String emailPass;
	private String favorites;
	private String firstName;
	private String lastName;
	private boolean poApproval;
	private String phone;
	private boolean sysAdmin;
	private int infected;
	private int isoamyl;
	private int trans2;
	private int userLevel;
	private String userName;
	private String userPass;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getAcetaldehyde() {
		return acetaldehyde;
	}
	public void setAcetaldehyde(int acetaldehyde) {
		this.acetaldehyde = acetaldehyde;
	}
	public boolean isBARApproval() {
		return BARApproval;
	}
	public void setBARApproval(boolean bARApproval) {
		BARApproval = bARApproval;
	}
	public boolean isBBrewingAccess() {
		return BBrewingAccess;
	}
	public void setBBrewingAccess(boolean bBrewingAccess) {
		BBrewingAccess = bBrewingAccess;
	}
	public boolean isBBrewingNot() {
		return BBrewingNot;
	}
	public void setBBrewingNot(boolean bBrewingNot) {
		BBrewingNot = bBrewingNot;
	}
	public boolean isBCellaringAccess() {
		return BCellaringAccess;
	}
	public void setBCellaringAccess(boolean bCellaringAccess) {
		BCellaringAccess = bCellaringAccess;
	}
	public boolean isBCellaringNot() {
		return BCellaringNot;
	}
	public void setBCellaringNot(boolean bCellaringNot) {
		BCellaringNot = bCellaringNot;
	}
	public boolean isBLabAccess() {
		return BLabAccess;
	}
	public void setBLabAccess(boolean bLabAccess) {
		BLabAccess = bLabAccess;
	}
	public boolean isBPackagingAccess() {
		return BPackagingAccess;
	}
	public void setBPackagingAccess(boolean bPackagingAccess) {
		BPackagingAccess = bPackagingAccess;
	}
	public boolean isBPackagingNot() {
		return BPackagingNot;
	}
	public void setBPackagingNot(boolean bPackagingNot) {
		BPackagingNot = bPackagingNot;
	}
	public boolean isBPurchasingNot() {
		return BPurchasingNot;
	}
	public void setBPurchasingNot(boolean bPurchasingNot) {
		BPurchasingNot = bPurchasingNot;
	}
	public boolean isBSalesAccess() {
		return BSalesAccess;
	}
	public void setBSalesAccess(boolean bSalesAccess) {
		BSalesAccess = bSalesAccess;
	}
	public boolean isBSalesNot() {
		return BSalesNot;
	}
	public void setBSalesNot(boolean bSalesNot) {
		BSalesNot = bSalesNot;
	}
	public boolean isBTaproomAccess() {
		return BTaproomAccess;
	}
	public void setBTaproomAccess(boolean bTaproomAccess) {
		BTaproomAccess = bTaproomAccess;
	}
	public int getDiacetyl() {
		return diacetyl;
	}
	public void setDiacetyl(int diacetyl) {
		this.diacetyl = diacetyl;
	}
	public int getDms() {
		return dms;
	}
	public void setDms(int dms) {
		this.dms = dms;
	}
	public boolean isEmpAxed() {
		return empAxed;
	}
	public void setEmpAxed(boolean empAxed) {
		this.empAxed = empAxed;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getEmailPass() {
		return emailPass;
	}
	public void setEmailPass(String emailPass) {
		this.emailPass = emailPass;
	}
    public String decryptEmailPassword(){
        String decrypted = Encrypter.decrypt(this.emailPass);
        return decrypted;
    }
    public void encryptEmailPassword(final String emailPass){
        String encrypted = Encrypter.encrypt(emailPass);
        this.emailPass = encrypted;
    }
    
	public String getFavorites() {
		return favorites;
	}
	public void setFavorites(String favorites) {
		this.favorites = favorites;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public boolean isPoApproval() {
		return poApproval;
	}
	public void setPoApproval(boolean poApproval) {
		this.poApproval = poApproval;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public boolean isSysAdmin() {
		return sysAdmin;
	}
	public void setSysAdmin(boolean sysAdmin) {
		this.sysAdmin = sysAdmin;
	}
	public int getInfected() {
		return infected;
	}
	public void setInfected(int infected) {
		this.infected = infected;
	}
	public int getIsoamyl() {
		return isoamyl;
	}
	public void setIsoamyl(int isoamyl) {
		this.isoamyl = isoamyl;
	}
	public int getTrans2() {
		return trans2;
	}
	public void setTrans2(int trans2) {
		this.trans2 = trans2;
	}
	public int getUserLevel() {
		return userLevel;
	}
	public void setUserLevel(int userLevel) {
		this.userLevel = userLevel;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPass() {
		return userPass;
	}
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}
	public boolean isBRecipeModAccess() {
		return BRecipeModAccess;
	}
	public void setBRecipeModAccess(boolean bRecipeModAccess) {
		BRecipeModAccess = bRecipeModAccess;
	}
	
	public String getDisplayString(){
		return this.lastName + ", " + this.firstName;
	}
}
